package com.cyk.feign;

import com.cyk.entity.User;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClientConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-server", configuration = LoadBalancerClientConfiguration.class)
public interface UserClient {


    @GetMapping("/user/{id}")
    String user(@PathVariable("id") Long id);

}
